﻿using System;
using System.Linq;
using UnityEngine;

// Token: 0x0200032D RID: 813
public class AssetBundleLoadAssetOperationSimulation : AssetBundleLoadAssetOperation
{
	// Token: 0x0600147F RID: 5247 RVA: 0x0008EBE0 File Offset: 0x0008CDE0
	public AssetBundleLoadAssetOperationSimulation(UnityEngine.Object simulatedObject)
	{
		this.m_SimulatedObjects = new UnityEngine.Object[]
		{
			simulatedObject
		};
	}

	// Token: 0x06001480 RID: 5248 RVA: 0x0008EBF8 File Offset: 0x0008CDF8
	public AssetBundleLoadAssetOperationSimulation(UnityEngine.Object[] simulatedObjects)
	{
		this.m_SimulatedObjects = simulatedObjects;
	}

	// Token: 0x06001481 RID: 5249 RVA: 0x0008EC08 File Offset: 0x0008CE08
	public override bool IsEmpty()
	{
		return this.m_SimulatedObjects == null || this.m_SimulatedObjects.Length == 0 || this.m_SimulatedObjects[0] == null;
	}

	// Token: 0x06001482 RID: 5250 RVA: 0x0008EC38 File Offset: 0x0008CE38
	public override T GetAsset<T>()
	{
		return this.m_SimulatedObjects[0] as T;
	}

	// Token: 0x06001483 RID: 5251 RVA: 0x0008EC4C File Offset: 0x0008CE4C
	public override T[] GetAllAssets<T>()
	{
		return this.m_SimulatedObjects.OfType<T>().ToArray<T>();
	}

	// Token: 0x06001484 RID: 5252 RVA: 0x0008EC60 File Offset: 0x0008CE60
	public override bool Update()
	{
		return false;
	}

	// Token: 0x06001485 RID: 5253 RVA: 0x0008EC64 File Offset: 0x0008CE64
	public override bool IsDone()
	{
		return true;
	}

	// Token: 0x040018FF RID: 6399
	private UnityEngine.Object[] m_SimulatedObjects;
}
